package com.example.spinning.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

public class InputStock {
    private int id;
    private String unit;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp date;
    private String name;
    private String function;
    private String number;
    private float quantity;
    private float sum;
    private int sum_number;
    private float weight;
    private float moisture;
    private float buckle;
    private float net_weight;
    private float indicated_weight;
    private float price;
    private float total_amount;
    private String document_maker;
    private String handler;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public float getQuantity() {
        return quantity;
    }

    public void setQuantity(float quantity) {
        this.quantity = quantity;
    }

    public float getSum() {
        return sum;
    }

    public void setSum(float sum) {
        this.sum = sum;
    }

    public int getSum_number() {
        return sum_number;
    }

    public void setSum_number(int sum_number) {
        this.sum_number = sum_number;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public float getMoisture() {
        return moisture;
    }

    public void setMoisture(float moisture) {
        this.moisture = moisture;
    }

    public float getBuckle() {
        return buckle;
    }

    public void setBuckle(float buckle) {
        this.buckle = buckle;
    }

    public float getNet_weight() {
        return net_weight;
    }

    public void setNet_weight(float net_weight) {
        this.net_weight = net_weight;
    }

    public float getIndicated_weight() {
        return indicated_weight;
    }

    public void setIndicated_weight(float indicated_weight) {
        this.indicated_weight = indicated_weight;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(float total_amount) {
        this.total_amount = total_amount;
    }

    public String getDocument_maker() {
        return document_maker;
    }

    public void setDocument_maker(String document_maker) {
        this.document_maker = document_maker;
    }

    public String getHandler() {
        return handler;
    }

    public void setHandler(String handler) {
        this.handler = handler;
    }

    @Override
    public String toString() {
        return "InputStock{" +
                "id=" + id +
                ", unit='" + unit + '\'' +
                ", date=" + date +
                ", name='" + name + '\'' +
                ", function='" + function + '\'' +
                ", number='" + number + '\'' +
                ", quantity=" + quantity +
                ", sum=" + sum +
                ", sum_number=" + sum_number +
                ", weight=" + weight +
                ", moisture=" + moisture +
                ", buckle=" + buckle +
                ", net_weight=" + net_weight +
                ", indicated_weight=" + indicated_weight +
                ", price=" + price +
                ", total_amount=" + total_amount +
                ", document_maker='" + document_maker + '\'' +
                ", handler='" + handler + '\'' +
                '}';
    }
}
